import request from '@/utils/request'

export const getCheckout = () => {
    return request('/member/order/pre')
}
export const createOrder=(data)=>{
    return request({
        url:'/member/order',
        method:'post',
        data
    })
}
export const getCheckoutInfo=(id)=>{
    return request.get(`/member/order/${id}`)
}
export const payByAlipay=(id)=>{
    return request({
        url:'/pay/aliPay',
        method:'post',
    })
}